{% extends "base.html" %}

{% block title %}Homework List{% endblock %}

{% block content %}
    <h1>Current Homework List</h1>
    <ul>
    {% for homework in object_list %}
	    <li><a href="/hwk/detail/{{ homework.id }}">{{ homework.course }} {{ homework.duedate }} -- {{ homework.summary}} </a></li>
    {% endfor %}
    </ul>
{% if not ascending %}
<a href="?sort=asc">Sort in ascending by date.</a>
{% else %}
<a href="/hwk/all/">Sort in descending by date.</a>
{% endif %}


{% endblock %}
